<?php
namespace Good\Controller;
use Good\Controller;
use Think\Hook;

class IndexController extends CommonController {
	function _initialize(){
		Hook::add('checkHtml','Addons\Controller\Uc\UcAddon');
		Hook::add('checkAjax','Addons\Controller\Uc\UcAddon');
		$env = array(
			'controller'	=> CONTROLLER_NAME,
			'action'        => ACTION_NAME,
			'module'	    => MODULE_NAME,
			'group'		    => GROUP_NAME,
			'theme'         => THEME_NAME,
		    'isInArray'     => in_array(ACTION_NAME, array('index', 'Index', 'login'))
		);
		$this->assign('category', $this->getCategory());
		$this->assign('env', $env);
	}

	public function index(){
		$assign = array(
			'nav'       => '首页',
		);
		$this->assign($assign);
		$this->output();
	}

	public function add(){
		$assign = array(
			'nav'       => '我要入驻好店',
		);
		$this->assign($assign);
		$this->output();
	}

}